package mrt.cse.tempworks.initialWorksOfTeamMembers.ishara;

import java.util.Comparator;

/**
 * Created by IntelliJ IDEA.
 * User: shameera
 * Date: 1/17/12
 * Time: 10:03 PM
 * To change this template use File | Settings | File Templates.
 */
public class Manager extends Thread{
    private String nodePath;
    private String name;
    private Integer sequenceID;
    //private byte[] data;
    //private List<ACL> aclList;
    //private CreateMode createMode;

    public Manager() {
    }



    public Manager(Integer sequenceID, String nodePath, String name) {
        this.nodePath = nodePath;
        this.name = name;
        this.sequenceID=sequenceID;


    }


    @Override
    public void run() {

        super.run();
    }

    @Override
    public void start() {
        super.start();
    }

    @Override
    public long getId() {
        return super.getId();
    }

    public String getnodePath() {
        return nodePath;
    }

    public void setnodePath(String nodePath) {
        this.nodePath = nodePath;
    }

    public Integer getSequenceID() {
        return sequenceID;
    }

    public void setSequenceID(Integer sequenceID) {
        this.sequenceID = sequenceID;
    }

    @Override
    public State getState() {
        return super.getState();
    }

    public static class SequenceIDComparator implements Comparator<Manager> {

        @Override
        public int compare(Manager o1, Manager o2) {
            return o1.getSequenceID().compareTo(o2.getSequenceID());
        }

    }
}
